package topt_12z.starter;

import topt_12z.general.EventGenerator;
import topt_12z.general.NetworkSynchronizer;
import topt_12z.network.Network;

public class Starter {

	/**
	 * @param args
	 * @throws Exception
	 */
	public static void main(String[] args) throws Exception {
		EventGenerator generator = EventGenerator.getInstance();
		NetworkSynchronizer synchronizer = NetworkSynchronizer.getInstance();
		synchronizer.addSynchronizeEventListener(generator);
		Network network = new Network();
		System.out.println(network.toString());
	
		synchronizer.setNetworkGrid(network.getNetworkGrid());
		//System.out.println(network.toFullString());
		
		generator.init();
		synchronizer.start(); 
	}

}
